/**
 * Copyright 2009 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.code.sapien.service;

import com.google.code.sapien.model.Discussion;
import com.google.code.sapien.model.Response;
import com.google.code.sapien.util.PaginatedResult;
import com.google.inject.ImplementedBy;

/**
 * Provides an interface for service operations on {@link com.google.code.sapien.model.Response} entities.
 * @author Adam
 * @version $Id: ResponseService.java 23 2009-05-12 04:28:58Z a.ruggles $
 * 
 * Created on Feb 21, 2009 at 9:56:27 AM 
 */
@ImplementedBy(ResponseSapienService.class)
public interface ResponseService extends EntityService<Response> {

	/**
	 * Returns a {@link com.google.code.sapien.util.PaginatedResult} of responses for a given discussion.
	 * @param discussion The discussion.
	 * @param page The current page number.
	 * @param resultsPerPage The number of results per page.
	 * @return A {@link com.google.code.sapien.util.PaginatedResult} of responses.
	 */
	PaginatedResult<Response> getPage(Discussion discussion, int page, int resultsPerPage);
}
